package com.cn.wx.servlet;

import com.cn.wx.model.TopModel;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/product")
public class ProductServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.setAttribute("topModel", new TopModel());
        req.setAttribute("list", new TopModel().getNavList());
        req.getRequestDispatcher("/jsp/product.jsp").forward(req,resp);
    }
}
